package com.kusiri.kframework.uibuilder
{
	import com.kusiri.kframework.KfContext;
	import com.kusiri.kframework.metadata.KfComponentPropertyConfiguration;
	
	import flash.display.DisplayObject;
	
	import mx.containers.VBox;
	
	public class ComponentPropertyView extends VBox
	{
		public var configuration : KfComponentPropertyConfiguration;
		
		public function ComponentPropertyView()
		{
			super();
		}
		
		
		override protected function commitProperties():void 
		{
			removeAllChildren();
			
			if (configuration) 
			{
				addChild(configuration.newViewer() as DisplayObject);
			}
			
    		super.commitProperties();
  		}

		
		

	}
}